package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document(collection = "payButtonConfig")
public class PayButtonConfigPage extends EntityBase {
    //纸质证书
    public static final String PAPER_CERTIFICATE = "PAPER_CERTIFICATE";

    //电子证书
    public static final String CA_CERTIFICATE = "CA_CERTIFICATE";

    //弹窗
    public static final String POPUP = "POPUP";
    //增品弹窗
    public static final String GIFT_POPUP = "GIFT_POPUP";
    //支付配置页Id
    @Indexed
    private String payConfigPageId;
    //按钮主文案
    private String buttonPrimaryDesc;
    //按钮副文案
    private String buttonSecondaryDesc;

    //按钮类型
    @Indexed
    private String buttonType;

    private String certificateConfigId;

    private String caType;

    //领取介绍
    private String receiveDesc;


    private String activityId;
    private String activityName;

    //弹窗url
    private String popupUrl;
    //领取开始时间
    private Date startTime;
    //领取结束时间
    private Date endTime;

    /**
     * 商品说明
     */
    private String itemDetail;

    /**
     * 是否展示证书用户信息
     */
    private Boolean userInfoCertificateShow = Boolean.FALSE;

    /**
     * 类型1、文字类型 2、图片类型
     */
    private Integer payButtonType = 1;

    /**
     * 收款按钮类型-图片类型
     */
    private String payButtonImgUrl;

    /**
     * 是否显示证书等级 true 展示
     */
    private Boolean levelShow = Boolean.FALSE;

    /**
     * 按钮颜色
     */
    private String buttonColor;
    /**
     * 排序值
     */
    private Integer priority = 1;

    /**
     * 首页弹窗排序值【只有纸质证书情况下】
     */
    private Integer popupPriority = 0;
    /**
     * 是否通过贡献值控制
     */
    private Boolean controlByQ = Boolean.FALSE;
    /**
     * 贡献值初始值
     */
    private Integer startQ;
    /**
     * 贡献值结束值
     */
    private Integer endQ;


}
